package com.youthHostel.service;


import java.util.List;

import com.github.pagehelper.PageInfo;
import com.youthHostel.pojo.user;

public interface UserService {

	user userLogin(String name, String pass);
	
	PageInfo<user> findAll(int index);
	
	int deleteByPrimaryKey(Integer id);

    int insert(user record);

    user selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(user record);
    
    List<user> findByName(String name,int index);
}
